package com.itheima.附加题.work1;

public class Employee {
    private String name;
    private String workld;
    private String dept;

    public void showMsg(){
        System.out.println(dept+"的"+name+"员工编号为:"+workld);
    }
    public Employee() {
    }

    public Employee(String name, String workld, String dept) {
        this.name = name;
        this.workld = workld;
        this.dept = dept;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWorkld() {
        return workld;
    }

    public void setWorkld(String workld) {
        this.workld = workld;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }
}
